package com.glink.manage.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@TableName("center_role")
@NoArgsConstructor
public class RoleBean extends Model<RoleBean> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id")
    @ApiModelProperty(name = "id", notes = "角色id")
    @Size(max = 32)
    private String id;

    @ApiModelProperty(name = "name", notes = "角色名称")
    @Size(max = 64)
    private String name;

    @ApiModelProperty(name = "remark", notes = "备注")
    private String remark;

    @ApiModelProperty(name = "createTime", notes = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(name = "createUser", notes = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(name = "ifFixed", notes = "是否系统预设：0否，1是")
    private String ifFixed;

    @ApiModelProperty(name = "updateTime", notes = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(name = "updateUser", notes = "更新人")
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;

    /**
     * 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
 
}
